#pragma once
#include "../common/httplib.h"
#include "../common/ContactStorage.h"


class ContactHandler
{
public:

    /*
    static 是为了直接把函数指针传给 httplib，不需要对象实例。
    如果你需要对象状态，就用 lambda 包装非静态方法。
        */
    static void handleAddContact(const httplib::Request& req, httplib::Response& res); 

    static void handleDelContact(const httplib::Request& req, httplib::Response& res);

    static void handleFindOneContact(const httplib::Request& req, httplib::Response& res);

    static void handleFindAllContacts(const httplib::Request& req, httplib::Response& res); 
};